# if语句
cars = ['audi', 'bmw', 'subaru', 'toyota']
for car in cars:
    if car == 'bmw':
        print(car.upper())
    else:
        print(car.title())

# 逻辑运算符
# ==   !=   and（与）   or(或)
print(5 > 4 and 5 > 2)



# if-elif-else 结构
age = 12
if age < 4:
    print("Your admission cost is $0.")
elif age < 18:
    print("Your admission cost is $5.")
else:
    print("Your admission cost is $10.")


for a in range(1,4):
    grade = float(input("请输入成绩："))
    if grade<60:
        print("差")
    elif grade<80:
        print("良")
    else:
        print("优")



